<div class="accountObligations index">
    <h2><?php echo __('Actividades'); ?></h2>
    <table class="tabla" >
        <tr>
            <th>Obligaciones del contrato</th>
            <th>Descripcion de las acciones realizadas</th>

            <th class="actions"></th>
        </tr>
        <?php foreach ($accountObligations as $accountObligation): ?>
            <tr>
                <td><?php echo h($accountObligation['Obligation']['descripcion']); ?>&nbsp;</td>
                <td><?php echo h($accountObligation['AccountObligation']['descripcion_acciones']); ?>&nbsp;</td>

                <td >

                    <?php echo $this->Ajax->link('Ver', array('class' => "actions", 'action' => 'view', $accountObligation['AccountObligation']['id']), array('update' => 'content', 'indicator' => 'loading')); ?>
                    <br>
                    <br>
                    <?php echo $this->Ajax->link('Editar', array('class' => "actions", 'action' => 'edit', $accountObligation['AccountObligation']['id']), array('update' => 'content', 'indicator' => 'loading')); ?>
                    <br>
                    <br>
                    <?php echo $this->Ajax->link('Borrar', array('class' => "actions", 'action' => 'delete', $accountObligation['AccountObligation']['id'], $id_cuenta), array('update' => 'content', 'indicator' => 'loading'), __('Desea borrar el registro# %s?', $accountObligation['AccountObligation']['id'])); ?>

                </td>
            </tr>
        <?php endforeach; ?>
    </table>

    <table border="0"  CellSpacing=10  align="center">
        <tr>
            <td>Regresar</td>
            <td>Añadir actividad  </td>
            <td>Imprimir informe </td>
        </tr>
        <tr>
            <td><?php echo $this->Ajax->link($this->Html->image("regresar.gif", array('width' => '30', 'heigth' => '30', 'alt' => 'Regresar')), array('controller' => "Accounts", "action" => "index", $this->Session->read('contrato')), array('update' => 'content', 'indicator' => 'loading', 'escape' => false), null) ?></td>
            <td><?php echo $this->Ajax->link($this->Html->image("add.png", array('width' => '30', 'heigth' => '30', 'alt' => 'Adicionar proyecto')), array('controller' => "AccountObligations", "action" => "add", $id_cuenta), array('update' => 'content', 'indicator' => 'loading', 'escape' => false)) ?></td>
            <td><?php echo $this->Html->link($this->Html->image("pdf.png", array('width' => '30', 'heigth' => '30', 'alt' => 'Adicionar proyecto')), array('controller' => "AccountObligations", "action" => "print_report", $id_cuenta), array('target' => '_blank', 'escape' => false)) ?></td>
        </tr>

    </table>   